<?php
/**
 * form.php
 * @author ranuandra
 *
 * 10 Agu 2011 10:54:02
 *
 * 
 */
$bulan = array(
				'01'=>'Januari',
				'02'=>'Februari',
				'03'=>'Maret',
				'04'=>'April',
				'05'=>'Mei',
				'06'=>'Juni',
				'07'=>'Juli',
				'08'=>'Agustus',
				'09'=>'September',
				'10'=>'Oktober',
				'11'=>'November',
				'12'=>'Desember'
				);
$thn = date("Y");
//echo $thn;
$tahunlist = array();
for($i=$thn; $i>=1990; $i--)
{
	$tahunlist[$i] = $i;
}
//print_r($tahunlist);
?>
	<div class="wrapper">
	<div class="form-container">
		<?php echo Form::open(URL::base().'upload/save', array('id'=>'validateform', 'class'=>'appnitro', 'enctype'=>'multipart/form-data')); ?>
		<div class="form_description">
			<h2>
			<?php 
			if(isset($title))
			{
				echo $title;
			}
			?>
			</h2>
			<p>
			<?php 
			if(isset($desc))
			{
				echo $desc;
			}
			?>
			</p>
		</div>	
			<fieldset>
				<legend>File Upload</legend>
				<div><label for="menu">Upload File </label> 						
						<?php 
							echo Form::file('fname', array('class'=>'element file'));
						?><label for="menu">Bulan - Tahun </label> 						
						<?php 
							
							echo Form::select('bulan', $bulan, date('m'));
							echo Form::select('tahun', $tahunlist, date('Y'));
						?>
						
				</div>			
			</fieldset>					
			<div class="buttonrow">
				<input type="submit" value="Save" class="button" />
				<input type="button" value="Discard" class="button" />
			</div>
<?php 
	Form::close();
?>
	</div>
	</div>